package com.zk;

import org.I0Itec.zkclient.ZkClient;

import java.util.List;

public class FetchNode {
    public static void main(String[] args) {
        ZkClient zkClient = new ZkClient("127.0.0.1:2181");
        List<String> list = zkClient.getChildren("/year");
        for (String str: list){
            System.out.println(str);
        }


    }
}
